import setupMock from "@/utils/setupMock";
import Mock from "mockjs";

setupMock({
	setup: () => {
		Mock.mock(new RegExp("/api/chatList"), () => {
			const data = Mock.mock({
				"data|4-6": [
					{
						"id|+1": 1,
						username: "用户7352772",
						content: "马上就开始了，好激动！13213222",
						time: "13:09:12",
						"isCollect|2": true
					}
				]
			});
			return data.data;
		});
	}
});
